<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
  <meta name="generator" content=
  "HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org">

  <title>raise</title>
  <link href="../cppreference.css" rel="stylesheet" type="text/css">
</head>

<body>
<table>
  <tr>
  <td>
  <div class="body-content">

  <div class="header-box">
    <a href="../index.html">cppreference.com</a> &gt; <a href=
    "index.html">Other Standard C Functions</a> &gt; <a href=
    "raise.html">raise</a>
  </div>

  <div class="name-format">
    raise
  </div>

  <div class="syntax-name-format">
    Syntax:
  </div>
  <pre class="syntax-box">
  #include &lt;signal.h&gt;
  int raise( int signal );
</pre>

  <p>The raise() function sends the specified <em>signal</em> to the
  program. Some signals:</p>

  <table class="code-table">
    <tr>
      <th class="code-table-th">Signal</th>

      <th class="code-table-th">Meaning</th>
    </tr>

    <tr>
      <td class="code-table-td">SIGABRT</td>

      <td class="code-table-td">Termination error</td>
    </tr>

    <tr>
      <td class="code-table-td">SIGFPE</td>

      <td class="code-table-td">Floating pointer error</td>
    </tr>

    <tr>
      <td class="code-table-td">SIGILL</td>

      <td class="code-table-td">Bad instruction</td>
    </tr>

    <tr>
      <td class="code-table-td">SIGINT</td>

      <td class="code-table-td">User presed CTRL-C</td>
    </tr>

    <tr>
      <td class="code-table-td">SIGSEGV</td>

      <td class="code-table-td">Illegal memory access</td>
    </tr>

    <tr>
      <td class="code-table-td">SIGTERM</td>

      <td class="code-table-td">Terminate program</td>
    </tr>
  </table>

  <p>The return value is zero upon success, nonzero on failure.</p>

  <div class="related-name-format">
    Related topics:
  </div>

  <div class="related-content">
    <a href="signal.html">signal</a>
  </div>
  </div>
  </td>
  


  </tr>
  </table>
</body></html>
